﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessObjects.BusinessRules;

namespace BusinessObjects.Person
{
    public class Districts : BusinessObject
    {
        public Districts()
        {
            AddRule(new ValidateRequired("DistrictCode"));
            AddRule(new ValidateLength("DistrictCode", 0, 20));

            AddRule(new ValidateRequired("DistrictName"));
            AddRule(new ValidateLength("DistrictName", 0, 255));
        }

        public Districts(string districtCode, string districtName, DateTime createDate, DateTime modifiedDate,
                                string description, bool isActive)
            : this()
        {
            DistrictCode = districtCode;
            DistrictName = districtName;
            CreateDate = createDate;
            ModifiedDate = modifiedDate;
            Description = description;
            IsActive = isActive;
        }

        public string DistrictCode { get; set; }

        public string DistrictName { get; set; }

        public DateTime CreateDate { get; set; }

        public DateTime ModifiedDate { get; set; }

        public string Description { get; set; }

        public bool IsActive { get; set; }
    }
}
